<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Button
 *
 * @author chaporgin_a
 */
class VA_Form_ViewHelper_XHTML_Button extends VA_Form_ViewHelper {
  protected $type = 'button';
  public function wrap(){

    $this->getElement()->setHTMLTagAttribute('type', $this->type, TRUE);
    $this->getElement()->setHTMLTagAttribute('value', $this->getValueOfElement(), TRUE);
    $this->getElement()->setLabel(null);
    return sprintf('<input %s />', $this->getElement()->getAllAttributesAsHTML());
  }
}